from django.shortcuts import render

# Create your views here.
import json

from django.http import HttpResponse
from .functions.dayee import DayeeInterface


# Create your views here.
def dayee_get_office(request):
    """
    登录接口
    :param request:
    :return:
    """
    # 根据token获取管辖部门信息，再获取管辖范围内的人
    dayee = DayeeInterface()
    dayee.get_office()
    return HttpResponse(json.dumps(1))


def dayee_get_interview(request):
    """
    登录接口
    :param request:
    :return:
    """
    # 根据token获取管辖部门信息，再获取管辖范围内的人
    dayee = DayeeInterface()
    dayee.get_interview(current_page=1)
    return HttpResponse(json.dumps(1))
